<?php

namespace hid\base;

/**
 * 号段本地存储器
 */
abstract class LocalStorage extends IdStorage
{

    abstract public function lock(string $name,int $tll = 0):bool;

    abstract public function exists(string $name):bool;

    abstract public function unlock(string $name):bool;

    abstract public function setValue(string $name,$value):bool;

    abstract public function getValue(string $name);

}
